<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

	<ui:composition template="/new-template/template.xhtml">
		<ui:define name="tituloPagina">
		   <h:outputText value="LOGIN :: ZPE"/>
		</ui:define> 
		
		<ui:define name="body">
		
			<h:form>
			
			<div id="login">
				<fieldset>
                <legend> 
                	<img src="resources/img/icon_cadeado.jpg" align="absmiddle"/> &Aacute;rea Restrita 
            	</legend>
            
            	<ul>
           	  		<li class="info" style="width:60px;">Login:</li>
              		<li class="user">
              			<input name="" type="text" class="textLogin" jsfc="h:inputText" value="#{loginBean.usuario.login}" />
              		</li>
              		
              		<li class="info" style="width:60px;">Senha:</li>

              		<li class="user">
              		   <input name="input" type="password" class="textLogin" jsfc="h:inputSecret" value="#{loginBean.usuario.senha}" />
              		</li>
                    
           	  		<li class="info" style="width:60px; margin-top:5px; text-align:right">
              			<img src="resources/img/icon_interrogacao.jpg" />
              		</li>
              	
	            	<li class="user" style="margin-top:10px; color:#666">
    	          		<a href="#" jsfc="h:commandLink" action="recupera-senha?faces-redirect=true">Esqueceu a senha?</a>
			  		</li>
			  		
              		<div style="clear:both; margin-left:60px; @margin:10px 0px 0px 0px;">
              			<p:commandButton styleClass="btn btn-success" 
              							 value="Enviar"
              							 onclick="carregando.show()"
                  						 update=":painelGlobal :formPanel"	 
              							 action="#{loginBean.autenticar}" />
              		</div>
            	</ul>
              </fieldset>
           </div>
           </h:form>
		</ui:define>
	</ui:composition>
</html>

